package com.jilefojing.beans.pojos;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.jilefojing.beans.pojos.base.BasePo;

/**
 * 
 * @author 作者 jgshun
 * @date 创建时间 2016年07月26日 12时41分43秒
 */
@Table(name = "r_source_correlation")
public class RSourceCorrelation extends BasePo {
	/**
	 * 属性查询列表
	 */
	public static final String FIELD_ID = "id";
	public static final String FIELD_ITEMTYPE = "itemType";
	public static final String FIELD_ITEMID = "itemId";
	public static final String FIELD_RELATIONTYPE = "relationType";
	public static final String FIELD_RELATIONID = "relationId";
	public static final String FIELD_SORT = "sort";
	public static final String FIELD_CREATEUSER = "createUser";
	public static final String FIELD_CREATETIME = "createTime";
	/**
	 * 列名查询列表
	 */
	public static final String COLUMN_ID = "id";
	public static final String COLUMN_ITEM_TYPE = "item_type";
	public static final String COLUMN_ITEM_ID = "item_id";
	public static final String COLUMN_RELATION_TYPE = "relation_type";
	public static final String COLUMN_RELATION_ID = "relation_id";
	public static final String COLUMN_SORT = "sort";
	public static final String COLUMN_CREATE_USER = "create_user";
	public static final String COLUMN_CREATE_TIME = "create_time";

	@Id
	@GeneratedValue(generator = "JDBC")
	private Long id;
	@Column(name = "item_type")
	private Short itemType;
	@Column(name = "item_id")
	private Long itemId;
	@Column(name = "relation_type")
	private Short relationType;
	@Column(name = "relation_id")
	private Long relationId;
	@Column(name = "sort")
	private Double sort;
	@Column(name = "create_user")
	private Long createUser;
	@Column(name = "create_time")
	private Date createTime;

	/**
	 * 获取 主键
	 * 
	 * @return id - 主键
	 */
	public Long getId() {
		return id;
	}

	/**
	 * 设置 主键
	 * 
	 * @param id
	 *            - 主键
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * 获取 被关联的对象类型
	 * 
	 * @return itemType - 被关联的对象类型
	 */
	public Short getItemType() {
		return itemType;
	}

	/**
	 * 设置 被关联的对象类型
	 * 
	 * @param itemType
	 *            - 被关联的对象类型
	 */
	public void setItemType(Short itemType) {
		this.itemType = itemType;
	}

	/**
	 * 获取 被关联的对象id
	 * 
	 * @return itemId - 被关联的对象id
	 */
	public Long getItemId() {
		return itemId;
	}

	/**
	 * 设置 被关联的对象id
	 * 
	 * @param itemId
	 *            - 被关联的对象id
	 */
	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	/**
	 * 获取 关联对象的类型
	 * 
	 * @return relationType - 关联对象的类型
	 */
	public Short getRelationType() {
		return relationType;
	}

	/**
	 * 设置 关联对象的类型
	 * 
	 * @param relationType
	 *            - 关联对象的类型
	 */
	public void setRelationType(Short relationType) {
		this.relationType = relationType;
	}

	/**
	 * 获取 关联对象的id
	 * 
	 * @return relationId - 关联对象的id
	 */
	public Long getRelationId() {
		return relationId;
	}

	/**
	 * 设置 关联对象的id
	 * 
	 * @param relationId
	 *            - 关联对象的id
	 */
	public void setRelationId(Long relationId) {
		this.relationId = relationId;
	}

	/**
	 * 获取 排序 大值在前面
	 * 
	 * @return sort - 排序 大值在前面
	 */
	public Double getSort() {
		return sort;
	}

	/**
	 * 设置 排序 大值在前面
	 * 
	 * @param sort
	 *            - 排序 大值在前面
	 */
	public void setSort(Double sort) {
		this.sort = sort;
	}

	/**
	 * 获取 创建者
	 * 
	 * @return createUser - 创建者
	 */
	public Long getCreateUser() {
		return createUser;
	}

	/**
	 * 设置 创建者
	 * 
	 * @param createUser
	 *            - 创建者
	 */
	public void setCreateUser(Long createUser) {
		this.createUser = createUser;
	}

	/**
	 * 获取 创建时间
	 * 
	 * @return createTime - 创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * 设置 创建时间
	 * 
	 * @param createTime
	 *            - 创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
}